#define _CRT_SECURE_NO_WARNINGS 1
#include"list.h"

void test()
{
	li *head = LIinit();
	LIpushtail(head, 1);
	LIpushtail(head, 2);
	LIpushtail(head, 3);
	LIprint(head);
	LIpushhead(head, 4);
	LIpushhead(head, 5);
	LIprint(head);
	LIpoptail(head);
	LIprint(head);
	li* mid = LIfind(head, 4);
	LIinsert(mid, 7);
	LIprint(head);
	li* m = LIfind(head, 1);
	LIerase(m);
	LIprint(head);
	LIdestroy(head);
}

int main()
{
	test();
	return 0;
}